package com.javaee.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.javaee.dao.UserDao;
import com.javaee.entity.User;
import com.javaee.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService{

	@Resource
	private UserDao userDao;
	
	public User getByName(String name) {
		return userDao.getByName(name);
	}

	public int updateUser(User user) {
		return userDao.updateUser(user);
	}

	public int addUser(User user) {
		 return userDao.addUser(user);
	}
	
}
